<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title><?=$page_title?></title>
<link href='http://redwolf.cdf.toronto.edu:8830/ci/css/main.css' type="text/css" rel="stylesheet"/>
<script src='http://redwolf.cdf.toronto.edu:8830/ci/script/main.js' type="text/javascript"></script>
</head>
<body>
<div id="container">

<div id="header">
	<h1>JBS Carpooling Service</h1>
</div>
<div id="wrapper">

	<div id="menu">
	<?php
	
	 if($this->session->userdata('user_id')){
        ?>
		<ul id="verticalmenu" class="jbsmenu">
		<li><a href='application/views/profile_view.php'>My Profile</a></li>
		<li><a href="messages.php">Messages</a></li>
		<li><a href="setting.php">Account Settings</a></li>
		<li><a href="http://redwolf.cdf.toronto.edu:8830/ci/index.php/post_trip">Post Trip</a></li>
                <li><a href="http://redwolf.cdf.toronto.edu:8830/ci/index.php/search">Search</a></li>
                <li><a href="http://redwolf.cdf.toronto.edu:8830/ci/index.php/fsearch">Search People</a></li>
                </br>
                 <li><a href="<?php $this->session->sess_destroy();?>">Logout</a></li>
		
		</ul>
	<?php }
	  else{
	?>
		<ul id="verticalmenu" class="jbsmenu">
		<li><a href="http://redwolf.cdf.toronto.edu:8830/ci/index.php/register">Register</a></li>
		<li><a href="http://redwolf.cdf.toronto.edu:8830/ci/index.php/login">Login</a></li>
		</ul> 
	<?php } ?>             
	</div> 
	</div>
	
	<div id="content">
			<?php echo form_open("http://redwolf.cdf.toronto.edu:8830/ci/index.php/search");
			$email = array(
					'name'    => 'email',
					'id'      => 'email',
					'value'   => set_value('email')
				);
			
			?>
			<ul>
				<li>
				<label>Enter email address : </label><?php echo form_input($email); ?>
				</li><br>
				<li>
					<?php echo validation_errors();?>
				</li>
			</ul>
			<?php echo form_submit('fsearch','FSearch'); ?>
		<?php echo form_close(); ?>
	</div>

</div>

<div id="footer">
Copyright © 2011 Team JBS</div>

</div>
</body>
</html>